-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V1 Automation #101
base: v1-machines
Are you sure you want to change the base?
V1 Automation #101
Conversation
1dd8dd8
to
fee18c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am half distracted ATM. I want to check this out on my computer and poke around with it. I'm really not sure how, for example, we would make the releases for the latest 2.0.1 release.
I am super happy about this though. This is going to really increase the quality.
.github/workflows/v1-builds.yml
Outdated
run: | | ||
v1-scripts/fetch-branch "origin/$BUILD_BRANCH" | ||
git fetch --prune origin "$MIRROR_BRANCH" # We need full history of the mirror branch | ||
git branch $MIRROR_BRANCH origin/$MIRROR_BRANCH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might not be getting the order here, but should this be fetching from upstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
N/M, I see the pull action at 15 */6
.github/workflows/v1-builds.yml
Outdated
- name: Push | ||
if: github.event_name != 'pull_request' | ||
run: | | ||
git push origin "$BUILD_BRANCH:refs/heads/$BUILD_BRANCH" --force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I don't understand what this is doing...
#bodyFile: "body.md" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
prerelease: true | ||
name: unstable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this will always go to the same release, right? There won't be a way to get a previous unstable branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these build products also available in the build log?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too happy with existing release plugins. It starts to look like we may have to build one.
In principle one can upload artifacts from build steps that can then be downloaded from the steps. But this is difficult to find/use and it's not designed for long-term storage.
If there is a need to keep a longer history of nightlies these must be published as releases. Which means there must be some cleanup logic to prune these.
v1-scripts/pull-from-upstream
Outdated
MIRROR_BRANCH="${MIRROR_BRANCH:-$UPSTREAM_BRANCH}" | ||
ORIGIN_REMOTE_NAME="${ORIGIN_REMOTE_NAME:-origin}" | ||
|
||
PULL_REQUESTS="${PULL_REQUESTS:-16108 16229}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These have been merged, so we can get rid of these, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will also only work for PRs against bugfix, otherwise, it will merge stuff not in the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, these are not needed any more. I keep these around to test the concept.
v1-scripts/pull-from-upstream
Outdated
|
||
UPSTREAM_REPOSITORY="${UPSTREAM_REPOSITORY:-https://github.com/MarlinFirmware/Marlin.git}" | ||
UPSTREAM_REMOTE_NAME="${UPSTREAM_REMOTE_NAME:-upstream}" | ||
UPSTREAM_BRANCH="${UPSTREAM_BRANCH:-$UPSTREAM_REMOTE_NAME/bugfix-2.0.x}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be an argument, to support picking this branch from upstream. I think 2.0.x is probably more useful for us, but bugfix is also useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it is. Because of the '=-'. Got it.
@@ -0,0 +1,22 @@ | |||
#!/bin/bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this step!
v1-scripts/generate-build-branch
Outdated
MIRROR_BRANCH="${MIRROR_BRANCH:-bugfix-2.0.x}" | ||
MACHINES_BRANCH="${MACHINES_BRANCH:-HEAD}" | ||
BUILD_BRANCH="${BUILD_BRANCH:-v1-$MIRROR_BRANCH}" | ||
ADD_BRANCHES="${ADD_BRANCHES:-v1-base-config}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This v1-base-config has to always be based on a common parent, or it will pull inextra stuff, right? I still have this idea in my head that bugfix and releases are not organized well upstream. Not sure how to fix that though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if v1-base-config was a submodule (or even just a nested checkout during build).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The point of these branches is to carry code that needs to be merged in but upstream will not carry. Think about backports of our PR-s that make it work/build on 2.0.x. These are present in bugfix-2.0.x and will be eventually in 2.0.1 but until that happens, backports need to be stored somewhere.
The v1-base-config branch right now is a test of two concepts: Starting with a "base" config that we (hopefully) push to upsteam and this branch merging logic.
. $incdir/drv8825 | ||
|
||
opt_set DEFAULT_AXIS_STEPS_PER_UNIT "{ 200, 200, 800, 200 }" | ||
opt_enable REVERSE_ENCODER_DIRECTION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think reverse encoder direction should probably be the same on all the LCD configs. I'm guessing there is an error in the configs that causes this to only be on some setups.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably should be put next to the disolay enable feature, which looks like it is in the base configs.
|
||
incdir=$(dirname $0)/.. | ||
|
||
use_example_configs CNC/MPCNC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't want this, do you? This is going to have a chicken and egg problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or is this just copying the _Bootscreen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This copies the entire config/examples/CNC/MPCNC directory.
|
||
opt_enable REVERSE_ENCODER_DIRECTION | ||
|
||
# Why? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea. Probably just not as obvious as it is here.
4f62033
to
6c23395
Compare
I have no idea if I did this right but I am getting closer to finishing up all the new firmware and these are the settings I am using. Trying to keep my note in a public place, work in progress https://docs.google.com/spreadsheets/d/1vqvdtS2TFGz9YddYO6rAU1w7-0tvp0B9ObIfAOfCKvs/edit?usp=sharing
5989139
to
1f37638
Compare
Github doesn't allow automated pushes when workflows are present. ! [remote rejected] HEAD -> v1-bugfix-2.0.x (refusing to allow a bot to create or update workflow `.github/workflows/test-builds.yml`)
a7173ae
to
42ccd27
Compare
6b39358
to
8c744cc
Compare
No description provided.